/*
 * BattleMatchingResource.h
 *
 *  Created on: 2014. 2. 5.
 *      Author: mega
 */

#ifndef BATTLEMATCHINGRESOURCE_H_
#define BATTLEMATCHINGRESOURCE_H_

#include <map>

namespace ProjectZ { namespace NResource {

class BattleMatchingResource
{
public:
	enum BattleType
	{
		EM_BATTLE_TYPE_PVP	= 0,
		EM_BATTLE_TYPE_PK,
	};

public:
	struct Flyweight
	{
		int	_BATTLE_TYPE;
		int	_MIN_LEVEL;
		int	_MAX_LEVEL;
	};

public:
	BattleMatchingResource();
	virtual ~BattleMatchingResource();

	bool	LoadResource();
	Flyweight *	GetFly(BattleType eBattleType);

private:
	void	Clear();

public:
	typedef std::map<int, Flyweight *>	BATTLEMATCHINGMAP;

private:
	BATTLEMATCHINGMAP	clsFlyTree;
};

} /*NResource*/ } /*ProjectZ*/



#endif /* BATTLEMATCHINGRESOURCE_H_ */
